package com.bnd.mapper;

import com.bnd.domain.ChatHistory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bnd.domain.vo.ChatHistoryVO;

import java.util.List;

/**
* @author 20668
* @description 针对表【chat_history】的数据库操作Mapper
* @createDate 2025-09-22 22:12:28
* @Entity com.bnd.domain.ChatHistory
*/
public interface ChatHistoryMapper extends BaseMapper<ChatHistory> {

    /**
     * 获取每个角色的第一条聊天记录
     * @param keyword 关键词
     * @return 聊天历史记录列表
     */
    List<ChatHistoryVO> selectFirstChatByCharacter(String keyword);
}
